package com.maimao.core.enums;

import lombok.Getter;

/**
 * @author MaoLin Wang
 * @date 2021/1/21 4:42 下午
 */
@Getter
public enum IntegralActionType {

    /**
     * 类型 1. 下单使用（减） 2.下单商品赠送(+冻结) + 3. 订单取消返还使用的积分（加） 4.订单取消减少冻结积分（-冻结）5.付款（+积分）6.付款（-冻结）
     */
    SUBMIT_ORDER(1, false, false),
    GOODS_IN_FREEZE(2, true, true),
    CANCEL_ORDER(3, true, false),
    GOODS_OUT_FREEZE(4, false, true),
    GOODS_IN(5, true, false),
    GOODS_OUT(6, false, true),
    ;


    IntegralActionType(Integer type, Boolean incr, Boolean freeze) {
        this.type = type;
        this.incr = incr;
        this.freeze = freeze;
    }

    private Integer type;
    private Boolean incr;
    private Boolean freeze;
}
